<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	</head>
	<body>
		<p>测试ios端光标在表情之前的问题</p>
		<textarea name="" rows="" cols="">123</textarea>
		<button>获取焦点</button>
	</body>
	<script type="text/javascript">
		var btn = document.getElementsByTagName("button")[0];
		var txt = document.getElementsByTagName("textarea")[0];
		btn.onclick = function(){
			txt.focus();
			txt.value = txt.value + "456";
			
		}
	</script>
</html>
